package com.itany.shop.service;

import com.itany.shop.entity.User;
import com.itany.shop.exception.UserNotLoginException;
import com.itany.shop.vo.Cart;

/**
 * @Author:石小俊
 * @Date:2022/11/16 17:02
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public interface OrderService {

    /**
     * 创建订单
     * 保存订单并返回主键
     * 保存该订单下的所有明细
     * @param cart
     * @param user
     * @return
     */
    public String createOrder(Cart cart, User user) throws UserNotLoginException;

}
